package com.biz.action.auth;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.opensymphony.xwork2.ActionSupport;

@Namespace("/auth")
@Results({@Result(name="success",location="/pages/index/index.jsp")
	,@Result(name="input",location="/login.jsp")
	,@Result(name="logtest",location="/logtest.jsp")
})
public class LoginAction extends ActionSupport {
	private static final long serialVersionUID = -3320342036035992020L;
	Log log = LogFactory.getLog(LoginAction.class);
	@Action(value="login")
	public String login(){
		log.info("--------------login--------------");
		return SUCCESS;
	}
	
	@Action(value="logout")
	public String logout(){
		log.info("--------------logout--------------");
		return INPUT;
	}
	
	@Action(value="logtest")
	public String logtest(){
		log.info("--------------logtest--------------");
		return "logtest";
	}
}
